Quantizator v0.95 by Jakub 'Ilmenit' Debski / 01.2010

Usage:
Quantizator.exe InputFile [options]

/i=Input File
  File to process. A lot of GFX formats are supported, including JPG, PNG, GIF and BMP.
  The image is rescaled to defined width and height.

/col=COL file
  You may use an existing COL file for quantization process.
  In this case the color selection for lines is skipped.

/w=Output Width
  Generated file width.  Default: 160 (40 bytes in G2F), -1 to skip resizing

/h=Output Height
  Generated file height.  Default: 240, -1 to skip resizing

/mode=Processing Modes:
  simple - basic color quantization
  local - maximizing local similarity. Slow, because all the color combinations are checked.
  dither - linear dithering
  rdither - randomized linear dithering
  cdither - chessboard linear dithering
  fdither - FloydSteinberg dithering, works only when following lines share similar palette.
  preview - different configuration combinations are called and many outputs are generated for preview.
  fastpreview - like preview but modes 'fdither' and 'local' are not included (much faster).

/dval=Dithering Value
  0.0 to 1.0 - strength of dithering and rdithering. 0.5 is default.

/dist=RGB Distance Function
  approx - low cost approximation (default)
  euclid - euclidian distance

/cf=Color Choose Function
  mc - the most common Atari color is choosen for the color (default)
  avg - averaged color is choosen for color

/pal=Palette File
  Processing quality depends a lot on similarity between chosen Atari palette and image palette.
  The default is Palettes\laoo.act, which covers a large color range and is close to Atari palette.

/o=Output File
  Output file name. With this name output files COL, MIC and ASM will be generated.

/nsort
  Skips phase of sorting colors to speed up generation process.
  Such picture contains too many DLI changes to be usable, so use it only as preview

/lock=RRGGBB[:RRGGBB:...]
  Locks colors into a specific RGB value for every line.
  F.e. /lock=000000:00FFFF sets COLBK to black and COLPF0 to blue.
  Locked colors are still used for the quantization process.
  Lock all the colors to have one palette on the whole picture.

To load file into Graph2Font first load MIC file, then COL.
The screen size in bytes must be set before loading!

Example:
Quantizator.exe test.jpg /lock=000000 /h=192 /mode=rdither /dval=0.2 /palette=palettes\g2f.act
Quantizator.exe test.jpg /fastpreview

